<include file="header"/>
<div class="wraper" js="wapjs/base/officialcar/js/torderlist">
	<div class="head clearfix">
		<a href="javascript:history.back(-1);" class="iconfont icon-zuo pull-left"></a>
		<span class="head-name pull-left">订单详情</span>
		<a href="#" class="pull-left text-right"></a>
	</div>
	<switch name="myOrderInfo.status">
		<case value="1">
			<div class="status text-center text-blue">
				<p class="iconfont icon-shijian"></p>
				<p>待审核</p>
			</div>
		</case>
		<case value="2">
			<div class="status text-center text-green">
				<p class="iconfont icon-ok"></p>
				<p>已通过</p>
			</div>
		</case>
		<case value="4">
			<div class="status text-center text-green">
				<p class="iconfont icon-ok"></p>
				<p>接送中</p>
			</div>
		</case>
		<case value="3">
			<div class="status text-center text-gray">
				<p class="iconfont icon-yiquxiao"></p>
				<p>未通过</p>				
				<div class="lists text-12">
					<p>不通过原因：{BEESCRM:$why}</p>
				</div>
			</div>
		</case>
		<case value="5">
			<div class="status text-center text-orange">
				<p class="iconfont icon-pingjia"></p>
				<p>待评价</p>
			</div>
		</case>
		<case value="6">
			<div class="status text-center">
				<p class="iconfont icon-shouye text-gray"></p>
				<p>已评价</p>				
			</div>
			<div class="lists text-12">
				<if condition="$comment.score eq 1">
					<p class="text-green">总体评价:满意</p>
                <elseif condition="$comment.score eq 3"/>
                    <p class="text-green">总体评价:非常满意</p>
				<elseif condition="$comment.score eq 2"/>
					<p class="text-red">总体评价:不满意</p>
					<p class="text-12">评价内容:{BEESCRM:$comment.content}</p>
				</if>
			</div>
		</case>
		<case value="7">
			<div class="status text-center">
				<p class="iconfont icon-yiquxiao"></p>
				<p>已取消</p>
			</div>
		</case>
	</switch>

	<volist name="data" id="vo">	
		<div class="lists">
			<div class="tb-mode">
				<p class="tb-cell">{BEESCRM:$vo.realname} [{BEESCRM:$vo.car_code}]</p>
				<a href="tel:{BEESCRM:$vo.tel}" class="tb-cell text-right text-12">{BEESCRM:$vo.tel} <span class="iconfont icon-dianhua text-green"></span></a>
			</div>
		</div>
	</volist>	
	<div class="lists text-12">
		<p>学院/部门：{BEESCRM:$myOrderInfo.user_college}</p>
		<p>使用人姓名：{BEESCRM:$myOrderInfo.tea_name}</p>
		<if condition="$myOrderInfo.tea_tel eq 0">
			<p>短号：{BEESCRM:$myOrderInfo.tea_sub_tel}</p>
        <else/>
            <p>使用人手机：{BEESCRM:$myOrderInfo.tea_tel}</p>
		</if>
	</div>
	<div class="lists text-12">
		<p>上车地点：{BEESCRM:$myOrderInfo.user_location}</p>
		<p>目的地：{BEESCRM:$myOrderInfo.user_destinction}</p>
		<p>用车时间：{BEESCRM:$myOrderInfo.car_start_time|date='Y年m月d日 H:i',###}</p>
	</div>
	<div class="lists text-12">
		<p>车型：{BEESCRM:$cars[$myOrderInfo['car_type']]}</p>
		<p>用车人数：{BEESCRM:$myOrderInfo.people_num}人</p>
		<p>用车数量：{BEESCRM:$myOrderInfo.car_num}辆</p>
		<p>用车天数：{BEESCRM:$myOrderInfo.car_time}天</p>
	</div>
    <div class="lists text-12">
        <p>备注：{BEESCRM:$myOrderInfo.remarks}</p>
    </div>
	<if condition="!empty($myOrderInfo['lead_name'])&&!empty($myOrderInfo['lead_tel'])">
		<div class="lists text-12">
			<p>带队老师：{BEESCRM:$myOrderInfo.lead_name}</p>
			<p>老师电话：{BEESCRM:$myOrderInfo.lead_tel}</p>
		</div>
	</if>
    <volist name="drivers" id="v">
        <div class="lists text-12">
            <p>驾驶员：{BEESCRM:$v.realname}</p>
            <p>驾驶员电话：{BEESCRM:$v.tel}</p>
        </div>
    </volist>
	<div class="lists text-12">
		<p>预约人：{BEESCRM:$username}</p>
	</div>
	<if condition="$myOrderInfo.status eq 1">
		<div class="btn-box">
			<input type="hidden" id="conf_id" value="{BEESCRM:$conf_id}">
			<a href="#" class="btn white-btn" url="/base/officialCar/doCancel/order_id/{BEESCRM:$myOrderInfo.order_id}/conf_id/{BEESCRM:$conf_id}" order-id="{BEESCRM:$myOrderInfo.order_id}">取消预约</a>
		</div>
	</if>
	<if condition="$myOrderInfo.status eq 5">
		<div class="btn-box">
			<a href="/base/officialCar/tOrderComment/order_id/{BEESCRM:$myOrderInfo.order_id}/conf_id/{BEESCRM:$conf_id}" class="btn bg-orange">我要评价</a>
		</div>
	</if>	
	<div class="layerwraper"></div>
</div>
<include file="footer"/>